-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: skip reconciling event for synchronous onContextChange operations #931
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Michael Beemer <[email protected]>
toddbaert
reviewed
May 3, 2024
toddbaert
reviewed
May 3, 2024
toddbaert
approved these changes
May 3, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, consider this.
Signed-off-by: Michael Beemer <[email protected]>
beeme1mr
requested review from
lukas-reining,
weyert,
thomaspoignant and
juanparadox
May 3, 2024 16:02
jonathannorris
approved these changes
May 3, 2024
lukas-reining
approved these changes
May 5, 2024
toddbaert
added a commit
that referenced
this pull request
May 13, 2024
🤖 I have created a release *beep* *boop* --- ## [1.1.0](web-sdk-v1.0.3...web-sdk-v1.1.0) (2024-05-13) ### ✨ New Features * set context during provider init on web ([#919](#919)) ([7e6c1c6](7e6c1c6)) ### 🐛 Bug Fixes * remove export of OpenFeatureClient ([#794](#794)) ([3d197f2](3d197f2)) * removes exports of OpenFeatureClient class and makes event props readonly ([#918](#918)) ([e9a25c2](e9a25c2)) * run error hook when provider returns reason error or error code ([#926](#926)) ([c6d0b5d](c6d0b5d)) * skip reconciling event for synchronous onContextChange operations ([#931](#931)) ([6c25f29](6c25f29)) ### 🧹 Chore * **main:** release core 1.2.0 ([#927](#927)) ([692ad5b](692ad5b)) ### 📚 Documentation * add tip about supported usage in the install section ([#941](#941)) ([f0de667](f0de667)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR
Notes
This will avoid unexpected component rerenders for synchronous onContextChange operations.
The spec states that the SDK may avoid emitting the
PROVIDER_RECONCILING
if a provider can reconcile synchronously.https://openfeature.dev/specification/sections/events#event-handlers-and-context-reconciliation